package com.lanhai.longheng.interfaces;
   
import com.lanhai.longheng.beans.DeviceBean; 
import com.lanhai.longheng.dao.DeviceGroupDao;  

/**
 * 设备数据接口
 * @author zhengwei
 *
 */
public interface IDevice {
  
	DeviceBean getDaoByDot(int dotNO,boolean cache);

	DeviceBean getDaoByID(long deviceid);

	DeviceBean getDao(String ip, int line);

	String getCmdSign(String ip);

	void updateError(long deviceid);

	// 工位加锁解锁
	void unlockForAgv(int agvId);

	void lockDevice(long deviceid, int agvId);
	
	void lockDeviceForTrans(long deviceid, int agvId);
 
	void unlockOtherDevice(long deviceid,int agvId);
	
	void unlockDeviceForDot(int dotno, int agvId);

	void unlockDeviceById(long id);
	
	//在机台处找定线
	DeviceGroupDao findNextDevice(int agvid, String nextProcess,int specialline  );
	  
	 
	//无视定线的查找
	DeviceGroupDao findNextDeviceNospecialline(int agvid, String nextProcess  );

	DeviceGroupDao findLockDeviceForAgv(int agvid,String processgroup);
}
